home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / falcon / programm.ing / nt_dsp1.lzh / NT_DSP1.MSA / FNTNS / EXP2T.ASM < prev    next >
Assembly Source File  |  1989-01-24  |  1KB  |  36 lines

  1. ;
  2. ; This program originally available on the Motorola DSP bulletin board.
  3. ; It is provided under a DISCLAMER OF WARRANTY available from
  4. ; Motorola DSP Operation, 6501 Wm. Cannon Drive W., Austin, Tx., 78735.
  5. ; Exponential Base 2 by Polynomial Approximation.  (test program)
  6. ; Last Update 26 Jan 87   Version 1.0
  7. ;
  8.         opt     cex
  9.         page    132,66,0,0
  10.         nolist
  11.         include 'dsplib:ioequ'
  12.         list
  13.         include 'dsplib:exp2'
  14.  
  15. datin   equ     $ffff           ;location in y memory of input file
  16. datout  equ     $fffe           ;location in y memory of output file
  17.  
  18.         org     y:0
  19. pcoef   dc      .6674432,.1713425,.9979554      ;a1,a2,a0
  20.  
  21.         org     p:$100
  22. start
  23.         movep   #0,x:M_BCR      ;no wait states on external io
  24. ;
  25.         do      #100,_e         ;number of points to do
  26.         move    #pcoef,r1       ;point to poly coef
  27.         movep   y:datin,x0      ;get input value
  28. ;
  29.         exp2                    ;do exponential
  30. ;
  31.         movep   a,y:datout
  32. _e
  33.         end
  34.